﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.ComponentModel;

namespace MRSite.Entity
{
    /// <summary>
    /// 收藏表
    /// </summary>
    [Table(Name = "customer_collect")]
    public class CustomerCollect : Entity
    {
        /// <summary>
        ///
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "user_id")]
        public int user_id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "user_name")]
        public String user_name { get; set; }

        /// <summary>
        /// 产品id
        /// </summary>
        [Column(Name = "article_id")]
        public int article_id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "title")]
        public String title { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "sell_price")]
        public Decimal sell_price { get; set; }

        [Column(Name = "add_time", IsDbGenerated = true)]
        public DateTime add_time { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "img_url")]
        public String img_url { get; set; }
        

        /// <summary>
        /// 店铺id
        /// </summary>
        [Column(Name = "shopid"), DefaultValue(0)]
        public int shopid { get; set; }

    }
}
